<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:import href="base-template.imp.xsl" />
		
	<xsl:output encoding="UTF-8" method="html" saxon:character-representation="native" xmlns:saxon="http://saxon.sf.net/"/>
	
	<xsl:template name="content">
		<div class="title"><xsl:value-of select="//page/Article/@title" /></div>
		<div class="text"><xsl:value-of select="//page/Article/content"/></div>
		<xsl:if test="//page/logined/@status=2">
			<a href="/article/editor/{//page/Article/@id}" class="text">Редактировать</a>
			<a href="/article/editor/{//page/Article/@id}/remove" class="text">Удалить</a>
		</xsl:if>
		
	</xsl:template>
	
</xsl:stylesheet>